/*
 * Copyright © 2024-2025 Benshou Technology Co., Ltd.
 * All rights reserved.
 */
package com.benshou.bsoa.job;

import com.benshou.bsoa.common.quartz.QuartzJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * DemoJob
 *
 * @author zhangtiansheng
 * @date 2025/4/14
 */
//@Component
@Slf4j
public class DemoJob {

    @QuartzJob(fixedRate = 1000)
    public void run() {
        log.info("DemoJob.run()");
    }

    @Scheduled(cron = "${test.corn:*/1 * * * * ?}")
    public void run1() {
        log.info("DemoJob.run1()");
    }
}
